package org.example.rmi;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class RmiClientNative {
    public static void main(String[] args) throws Exception {
        Registry registry = LocateRegistry.getRegistry("localhost", 8848, new MyRMIClientSocketFactory());
        Hello hello = (Hello) registry.lookup("hello");
        hello.sayHello();

    }
}
